package com.ruoyi.suggest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.suggest.mapper.CrmSuggestMapper;
import com.ruoyi.suggest.domain.CrmSuggest;
import com.ruoyi.suggest.service.ICrmSuggestService;

/**
 * 维修Service业务层处理
 * 
 * @author hct
 * @date 2022-02-11
 */
@Service
public class CrmSuggestServiceImpl implements ICrmSuggestService 
{
    @Autowired
    private CrmSuggestMapper crmSuggestMapper;

    /**
     * 查询维修
     * 
     * @param id 维修主键
     * @return 维修
     */
    @Override
    public CrmSuggest selectCrmSuggestById(Long id)
    {
        return crmSuggestMapper.selectCrmSuggestById(id);
    }

    /**
     * 查询维修列表
     * 
     * @param crmSuggest 维修
     * @return 维修
     */
    @Override
    public List<CrmSuggest> selectCrmSuggestList(CrmSuggest crmSuggest)
    {
        return crmSuggestMapper.selectCrmSuggestList(crmSuggest);
    }

    /**
     * 新增维修
     * 
     * @param crmSuggest 维修
     * @return 结果
     */
    @Override
    public int insertCrmSuggest(CrmSuggest crmSuggest)
    {
        return crmSuggestMapper.insertCrmSuggest(crmSuggest);
    }

    /**
     * 修改维修
     * 
     * @param crmSuggest 维修
     * @return 结果
     */
    @Override
    public int updateCrmSuggest(CrmSuggest crmSuggest)
    {
        return crmSuggestMapper.updateCrmSuggest(crmSuggest);
    }

    /**
     * 批量删除维修
     * 
     * @param ids 需要删除的维修主键
     * @return 结果
     */
    @Override
    public int deleteCrmSuggestByIds(Long[] ids)
    {
        return crmSuggestMapper.deleteCrmSuggestByIds(ids);
    }

    /**
     * 删除维修信息
     * 
     * @param id 维修主键
     * @return 结果
     */
    @Override
    public int deleteCrmSuggestById(Long id)
    {
        return crmSuggestMapper.deleteCrmSuggestById(id);
    }
}
